package com.jhgk.jhcee.bfk.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class FsdExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FsdExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFsIsNull() {
            addCriterion("fs is null");
            return (Criteria) this;
        }

        public Criteria andFsIsNotNull() {
            addCriterion("fs is not null");
            return (Criteria) this;
        }

        public Criteria andFsEqualTo(Integer value) {
            addCriterion("fs =", value, "fs");
            return (Criteria) this;
        }

        public Criteria andFsNotEqualTo(Integer value) {
            addCriterion("fs <>", value, "fs");
            return (Criteria) this;
        }

        public Criteria andFsGreaterThan(Integer value) {
            addCriterion("fs >", value, "fs");
            return (Criteria) this;
        }

        public Criteria andFsGreaterThanOrEqualTo(Integer value) {
            addCriterion("fs >=", value, "fs");
            return (Criteria) this;
        }

        public Criteria andFsLessThan(Integer value) {
            addCriterion("fs <", value, "fs");
            return (Criteria) this;
        }

        public Criteria andFsLessThanOrEqualTo(Integer value) {
            addCriterion("fs <=", value, "fs");
            return (Criteria) this;
        }

        public Criteria andFsIn(List<Integer> values) {
            addCriterion("fs in", values, "fs");
            return (Criteria) this;
        }

        public Criteria andFsNotIn(List<Integer> values) {
            addCriterion("fs not in", values, "fs");
            return (Criteria) this;
        }

        public Criteria andFsBetween(Integer value1, Integer value2) {
            addCriterion("fs between", value1, value2, "fs");
            return (Criteria) this;
        }

        public Criteria andFsNotBetween(Integer value1, Integer value2) {
            addCriterion("fs not between", value1, value2, "fs");
            return (Criteria) this;
        }

        public Criteria andWcIsNull() {
            addCriterion("wc is null");
            return (Criteria) this;
        }

        public Criteria andWcIsNotNull() {
            addCriterion("wc is not null");
            return (Criteria) this;
        }

        public Criteria andWcEqualTo(Integer value) {
            addCriterion("wc =", value, "wc");
            return (Criteria) this;
        }

        public Criteria andWcNotEqualTo(Integer value) {
            addCriterion("wc <>", value, "wc");
            return (Criteria) this;
        }

        public Criteria andWcGreaterThan(Integer value) {
            addCriterion("wc >", value, "wc");
            return (Criteria) this;
        }

        public Criteria andWcGreaterThanOrEqualTo(Integer value) {
            addCriterion("wc >=", value, "wc");
            return (Criteria) this;
        }

        public Criteria andWcLessThan(Integer value) {
            addCriterion("wc <", value, "wc");
            return (Criteria) this;
        }

        public Criteria andWcLessThanOrEqualTo(Integer value) {
            addCriterion("wc <=", value, "wc");
            return (Criteria) this;
        }

        public Criteria andWcIn(List<Integer> values) {
            addCriterion("wc in", values, "wc");
            return (Criteria) this;
        }

        public Criteria andWcNotIn(List<Integer> values) {
            addCriterion("wc not in", values, "wc");
            return (Criteria) this;
        }

        public Criteria andWcBetween(Integer value1, Integer value2) {
            addCriterion("wc between", value1, value2, "wc");
            return (Criteria) this;
        }

        public Criteria andWcNotBetween(Integer value1, Integer value2) {
            addCriterion("wc not between", value1, value2, "wc");
            return (Criteria) this;
        }

        public Criteria andRsxjIsNull() {
            addCriterion("rsxj is null");
            return (Criteria) this;
        }

        public Criteria andRsxjIsNotNull() {
            addCriterion("rsxj is not null");
            return (Criteria) this;
        }

        public Criteria andRsxjEqualTo(Integer value) {
            addCriterion("rsxj =", value, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjNotEqualTo(Integer value) {
            addCriterion("rsxj <>", value, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjGreaterThan(Integer value) {
            addCriterion("rsxj >", value, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjGreaterThanOrEqualTo(Integer value) {
            addCriterion("rsxj >=", value, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjLessThan(Integer value) {
            addCriterion("rsxj <", value, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjLessThanOrEqualTo(Integer value) {
            addCriterion("rsxj <=", value, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjIn(List<Integer> values) {
            addCriterion("rsxj in", values, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjNotIn(List<Integer> values) {
            addCriterion("rsxj not in", values, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjBetween(Integer value1, Integer value2) {
            addCriterion("rsxj between", value1, value2, "rsxj");
            return (Criteria) this;
        }

        public Criteria andRsxjNotBetween(Integer value1, Integer value2) {
            addCriterion("rsxj not between", value1, value2, "rsxj");
            return (Criteria) this;
        }

        public Criteria andLjrsIsNull() {
            addCriterion("ljrs is null");
            return (Criteria) this;
        }

        public Criteria andLjrsIsNotNull() {
            addCriterion("ljrs is not null");
            return (Criteria) this;
        }

        public Criteria andLjrsEqualTo(Integer value) {
            addCriterion("ljrs =", value, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsNotEqualTo(Integer value) {
            addCriterion("ljrs <>", value, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsGreaterThan(Integer value) {
            addCriterion("ljrs >", value, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsGreaterThanOrEqualTo(Integer value) {
            addCriterion("ljrs >=", value, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsLessThan(Integer value) {
            addCriterion("ljrs <", value, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsLessThanOrEqualTo(Integer value) {
            addCriterion("ljrs <=", value, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsIn(List<Integer> values) {
            addCriterion("ljrs in", values, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsNotIn(List<Integer> values) {
            addCriterion("ljrs not in", values, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsBetween(Integer value1, Integer value2) {
            addCriterion("ljrs between", value1, value2, "ljrs");
            return (Criteria) this;
        }

        public Criteria andLjrsNotBetween(Integer value1, Integer value2) {
            addCriterion("ljrs not between", value1, value2, "ljrs");
            return (Criteria) this;
        }

        public Criteria andKlIsNull() {
            addCriterion("kl is null");
            return (Criteria) this;
        }

        public Criteria andKlIsNotNull() {
            addCriterion("kl is not null");
            return (Criteria) this;
        }

        public Criteria andKlEqualTo(String value) {
            addCriterion("kl =", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlNotEqualTo(String value) {
            addCriterion("kl <>", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlGreaterThan(String value) {
            addCriterion("kl >", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlGreaterThanOrEqualTo(String value) {
            addCriterion("kl >=", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlLessThan(String value) {
            addCriterion("kl <", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlLessThanOrEqualTo(String value) {
            addCriterion("kl <=", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlLike(String value) {
            addCriterion("kl like", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlNotLike(String value) {
            addCriterion("kl not like", value, "kl");
            return (Criteria) this;
        }

        public Criteria andKlIn(List<String> values) {
            addCriterion("kl in", values, "kl");
            return (Criteria) this;
        }

        public Criteria andKlNotIn(List<String> values) {
            addCriterion("kl not in", values, "kl");
            return (Criteria) this;
        }

        public Criteria andKlBetween(String value1, String value2) {
            addCriterion("kl between", value1, value2, "kl");
            return (Criteria) this;
        }

        public Criteria andKlNotBetween(String value1, String value2) {
            addCriterion("kl not between", value1, value2, "kl");
            return (Criteria) this;
        }

        public Criteria andNfIsNull() {
            addCriterion("nf is null");
            return (Criteria) this;
        }

        public Criteria andNfIsNotNull() {
            addCriterion("nf is not null");
            return (Criteria) this;
        }

        public Criteria andNfEqualTo(Date value) {
            addCriterionForJDBCDate("nf =", value, "nf");
            return (Criteria) this;
        }

        public Criteria andNfNotEqualTo(Date value) {
            addCriterionForJDBCDate("nf <>", value, "nf");
            return (Criteria) this;
        }

        public Criteria andNfGreaterThan(Date value) {
            addCriterionForJDBCDate("nf >", value, "nf");
            return (Criteria) this;
        }

        public Criteria andNfGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("nf >=", value, "nf");
            return (Criteria) this;
        }

        public Criteria andNfLessThan(Date value) {
            addCriterionForJDBCDate("nf <", value, "nf");
            return (Criteria) this;
        }

        public Criteria andNfLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("nf <=", value, "nf");
            return (Criteria) this;
        }

        public Criteria andNfIn(List<Date> values) {
            addCriterionForJDBCDate("nf in", values, "nf");
            return (Criteria) this;
        }

        public Criteria andNfNotIn(List<Date> values) {
            addCriterionForJDBCDate("nf not in", values, "nf");
            return (Criteria) this;
        }

        public Criteria andNfBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("nf between", value1, value2, "nf");
            return (Criteria) this;
        }

        public Criteria andNfNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("nf not between", value1, value2, "nf");
            return (Criteria) this;
        }

        public Criteria andSydIsNull() {
            addCriterion("syd is null");
            return (Criteria) this;
        }

        public Criteria andSydIsNotNull() {
            addCriterion("syd is not null");
            return (Criteria) this;
        }

        public Criteria andSydEqualTo(String value) {
            addCriterion("syd =", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydNotEqualTo(String value) {
            addCriterion("syd <>", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydGreaterThan(String value) {
            addCriterion("syd >", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydGreaterThanOrEqualTo(String value) {
            addCriterion("syd >=", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydLessThan(String value) {
            addCriterion("syd <", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydLessThanOrEqualTo(String value) {
            addCriterion("syd <=", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydLike(String value) {
            addCriterion("syd like", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydNotLike(String value) {
            addCriterion("syd not like", value, "syd");
            return (Criteria) this;
        }

        public Criteria andSydIn(List<String> values) {
            addCriterion("syd in", values, "syd");
            return (Criteria) this;
        }

        public Criteria andSydNotIn(List<String> values) {
            addCriterion("syd not in", values, "syd");
            return (Criteria) this;
        }

        public Criteria andSydBetween(String value1, String value2) {
            addCriterion("syd between", value1, value2, "syd");
            return (Criteria) this;
        }

        public Criteria andSydNotBetween(String value1, String value2) {
            addCriterion("syd not between", value1, value2, "syd");
            return (Criteria) this;
        }

        public Criteria andKldmIsNull() {
            addCriterion("kldm is null");
            return (Criteria) this;
        }

        public Criteria andKldmIsNotNull() {
            addCriterion("kldm is not null");
            return (Criteria) this;
        }

        public Criteria andKldmEqualTo(Integer value) {
            addCriterion("kldm =", value, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmNotEqualTo(Integer value) {
            addCriterion("kldm <>", value, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmGreaterThan(Integer value) {
            addCriterion("kldm >", value, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmGreaterThanOrEqualTo(Integer value) {
            addCriterion("kldm >=", value, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmLessThan(Integer value) {
            addCriterion("kldm <", value, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmLessThanOrEqualTo(Integer value) {
            addCriterion("kldm <=", value, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmIn(List<Integer> values) {
            addCriterion("kldm in", values, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmNotIn(List<Integer> values) {
            addCriterion("kldm not in", values, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmBetween(Integer value1, Integer value2) {
            addCriterion("kldm between", value1, value2, "kldm");
            return (Criteria) this;
        }

        public Criteria andKldmNotBetween(Integer value1, Integer value2) {
            addCriterion("kldm not between", value1, value2, "kldm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}